function $Showhtml(){
	if(window.ActiveXObject || window.ActiveXObject !== undefined){
		return $PlayerIe();
	}else{
		return $PlayerNt();
	}
}
function $PlayerNt(){
	if (navigator.plugins) {
		var Install = false;
		for (i=0; i < navigator.plugins.length; i++ ) 
		{
			var n = navigator.plugins[i].name;
			if( navigator.plugins[n][0]['type'] == 'application/xfplay-plugin')
			{
				Install = true; break;
			}
		} 
		if(Install){
			return '<embed type="application/xfplay-plugin" PARAM_URL="'+Player.Url+'" PARAM_Status="1" width="100%" height="'+Player.Height+'" id="Xfplay" name="Xfplay"></embed>';
		}
	}
	Player.Install();
}
function $PlayerIe(){
         player = '<object ID="Xfplay" name="Xfplay" width="100%" height="'+Player.Height+'" onerror="Player.Install();" classid="clsid:E38F2429-07FE-464A-9DF6-C14EF88117DD" >';
         player += '<PARAM name="URL" value="'+Player.Url+'">';
         player += '<PARAM name="Status" value="1"></object>';
         return player;
}
//beta7版播放器回调函数
var onPlay = function(){
	$$('buffer').style.display = 'none';
	//强制缓冲广告倒计时
	if(Player.Second&&xfPlayer.IsPlaying()){
		xfPlayer.Play();
	}
}
var onPause = function(){
	//$$('buffer').src = Player.Buffer+'#pause';
	$$('buffer').height = Player.Height-63;
	$$('buffer').style.display = 'block';
}
var onFirstBufferingStart = function(){
	$$('buffer').height = Player.Height-80;
	$$('buffer').style.display = 'block';
}
var onFirstBufferingEnd = function(){
	if(Player.Second){
		xfPlayer.Play();
	}else{
		$$('buffer').style.display = 'none';
	}
}
var onPlayBufferingStart = function(){
	$$('buffer').height = Player.Height-80;
	$$('buffer').style.display = 'block';
}
var onPlayBufferingEnd = function(){
	$$('buffer').style.display = 'none';
}
var onComplete = function(){
	onPause();
}
var onAdsEnd = function(){
	//固定缓冲广告时间播放完毕
	Player.Second = 0;
	if(xfPlayer.IsPause()){
		xfPlayer.Play();
	}
}
Player.Show();
if(jjvodPlayer.URL != undefined){
	jjvodPlayer.style.display = 'block';
	if(Player.Second){
	$$('buffer').style.position = 'absolute';
	$$('buffer').style.height = Player.Height-42;
	$$("buffer").style.display = "block";
	setTimeout("Player.BufferHide();",Player.Second*1000);
	}
}